package com.example.game.controller;

import com.example.game.service.ex.InsertException;
import com.example.game.service.ex.ServiceException;
import com.pojo.util.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;


public class BaseController {
    @ExceptionHandler(RuntimeException.class)
    public Result<?> handleException(Throwable e){
        Result<?>result=Result.failure();
        return result;

    }
}
